/*
 * graphic.h
 *
 *  Created on: 2022年2月4日
 *      Author: TamGitsun
 */

#ifndef GRAPHIC_H_
#define GRAPHIC_H_

#include "configs.h"
#include <stdint.h>


void draw_line(int x0, int y0, int x1, int y1,
		uint32_t frameBuffer[APP_IMG_HEIGHT][APP_IMG_WIDTH], uint32_t color);

void draw_char(int x, int y, char ch, int font_size,
		uint32_t frameBuffer[APP_IMG_HEIGHT][APP_IMG_WIDTH],
		uint32_t font_color, uint32_t bg_color);

void draw_string(int x, int y, const char * str, int font_size,
		uint32_t frameBuffer[APP_IMG_HEIGHT][APP_IMG_WIDTH],
		uint32_t font_color, uint32_t bg_color);

void draw_string_right_align(int x, int y, const char * str, int font_size,
		uint32_t frameBuffer[APP_IMG_HEIGHT][APP_IMG_WIDTH],
		uint32_t font_color, uint32_t bg_color);

void draw_string_h_center_align(int x, int y, const char * str, int font_size,
		uint32_t frameBuffer[APP_IMG_HEIGHT][APP_IMG_WIDTH],
		uint32_t font_color, uint32_t bg_color);

void draw_string_v_center_align(int x, int y, const char * str, int font_size,
		uint32_t frameBuffer[APP_IMG_HEIGHT][APP_IMG_WIDTH],
		uint32_t font_color, uint32_t bg_color);

void draw_string_v_center_right_align(int x, int y, const char * str,
        int font_size,
		uint32_t frameBuffer[APP_IMG_HEIGHT][APP_IMG_WIDTH],
		uint32_t font_color, uint32_t bg_color);


#endif /* GRAPHIC_H_ */
